<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
let timer;
export default {
  name: "App",
  destroyed() {
    console.log("关闭sockets");
    this.$sockets.websock.socket.close(); //离开路由之后断开websocket连接
    this.$sockets.websock.socket = undefined;
  }
};
</script>
<style>
  .ivu-modal{
    top : 10px !important;
  }
  #app {
    height: 100%;
  }
  html,body{
    width: 100%;
    height: 100%;
  }

</style>